package com.markchu.modules.system.repository;


import com.markchu.common.constant.StatusConst;
import com.markchu.modules.system.domain.Saysay;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author mark_chu
 * @date 2024/02/01
 */
public interface SaysayRepository extends BaseRepository<Saysay, Long> {
    @Modifying
    @Transactional
    @Query("update #{#entityName} set star_fill = star_fill+1  where id = ?1")
    void updateSays(Long dataId);
}